<div ng-controller="NotifyCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'通知'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/notify/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'notify_id'|translate}}"  ng-model="notify_id">
          <button class="sui-btn btn-primary" type="submit" ng-click="getList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'ID'|translate}}</th>
                <th>{{'显示类型'|translate}}</th>
                <th>{{'跳转类型'|translate}}</th>
                <th>{{'门店'|translate}}</th>
                <th>{{'开始时间'|translate}}</th>
                <th>{{'结束时间'|translate}}</th>
                <th>{{'通知内容'|translate}}</th>
                <th>{{'创建时间'|translate}}</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in notifys">
                <td>{{list.notify_id}}</td>
                <td>
                    <notify-type ng-model="list.type_id" stype="1"></notify-type>
                </td>
                <td>
                    <jump-type ng-model="list.jump" stype="1"></jump-type>
                </td>
                <td>{{list.store_id}}</td>
                <td>
                    {{list.start_at | ddtt}}
                </td>
                <td>
                    {{list.end_at | ddtt}}
                </td>
                <td>{{list.content}}</td>
                <td>{{list.created_at | ddtt}}</td>
                <td>
                    <a href="#/notify/add?notify_id={{list.notify_id}}" class="sui-btn btn-primary">{{'edit'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="xtotal" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>
